<html>
<head><meta charset="utf-8"><title>Saturating FP-to-integer · t-compiler/arm · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/index.html">t-compiler/arm</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/Saturating.20FP-to-integer.html">Saturating FP-to-integer</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="238595446"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242906-t-compiler/arm/topic/Saturating%20FP-to-integer/near/238595446" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jacob Bramley <a href="https://rust-lang.github.io/zulip_archive/stream/242906-t-compiler/arm/topic/Saturating.20FP-to-integer.html#238595446">(May 13 2021 at 08:33)</a>:</h4>
<p>Since FP-to-integer <code>as</code> cast are now well-defined, I've been looking at improving the code generation for these, and have submitted <a href="https://reviews.llvm.org/D102353">an LLVM patch</a> for AArch64. With <span class="user-mention" data-user-id="116015">@Alex Crichton</span>'s <a href="https://github.com/rust-lang/rust/pull/84339">recent PR</a>, we get some decent (single-instruction) code generation for these conversions.<br>
I'm mentioning it here to avoid duplicated effort; there seem to be more activity in this area than I first realised.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>